package models

type User struct {
	BaseModel
	Username     string `gorm:"type:varchar(20);not null;" json:"username"`
	Password     string `gorm:"size:255;not null" json:"password,omitempty"`
	UUID         string `gorm:"type:varchar(60);not null;unique" json:"uuid"`
	Avatar       string `gorm:"type:varchar(255)" json:"avatar"`
	Nickname     string `gorm:"type:varchar(20)" json:"nickname"`
	Introduction string `gorm:"type:varchar(255)" json:"introduction"`
	Status       uint   `gorm:"type:tinyint(1);default:1;comment:'1正常, 2禁用'" json:"status"`
	Creator      string `gorm:"type:varchar(20);" json:"creator"`
}
